﻿package com.toncen.samepms.portal.action;

import java.util.ArrayList;
import java.util.List;

import com.toncen.samepms.common.AbstractDatabaseAction;
import com.toncen.samepms.net.dao.FriendlyLinkDao;
import com.toncen.samepms.net.domain.FriendlyLink;

/**
 * 描述：友情链接表NET_FRIENDLY_LINK的action文件
 * 
 * @author xyp
 * @time 2013-5-10
 */
public class FriendlyLinkPublicAction extends AbstractDatabaseAction<FriendlyLink, FriendlyLinkDao> {
	/**
	 * 序列号
	 */
	private static final long serialVersionUID = 1366853043250L;

	public FriendlyLinkPublicAction() throws Exception {
		super();
	}

	/**
	 * 获取友情链接相关信息
	 */
	private List<FriendlyLink> friendlyLinks = new ArrayList<FriendlyLink>();

	/**
	 * 浏览友情链接
	 * 
	 * @return
	 * @throws Exception
	 */
	public String onDoBrowers() throws Exception {
		friendlyLinks = getDao().getAllFriendlyLink();
		return SUCCESS;
	}

	public List<FriendlyLink> getFriendlyLinks() {
		return friendlyLinks;
	}

	public void setFriendlyLinks(List<FriendlyLink> friendlyLinks) {
		this.friendlyLinks = friendlyLinks;
	}

}
